﻿@model IEnumerable<BabyShop.WebSite.Models.ProductType>
@{
    string currProductTypeGuid = Request.QueryString["keyGuid"];
    Guid currPTGuid = string.IsNullOrEmpty(currProductTypeGuid) ? Guid.Empty : new Guid(currProductTypeGuid);
    var currPT = Model.FirstOrDefault(p => p.ProductTypeGuid == currPTGuid);
}

@Html.ActionLink("主页", "Default", "Home", null, new { id = "nav-index" })
@if (currPT != null) {
    <div class="curr">
        @Html.ActionLink(currPT)
    </div>
}
<div id="nav-extra">
    <ul>
        @{
            int i = 0;
        }
        @foreach (var productType in Model.Where(pt => pt.ProductTypeGuid != currPTGuid)) {
            <li class="@(i++ == 0 ? "fore" : string.Empty)">
                @Html.ActionLink(productType)
            </li>
        }
    </ul>
    <div class="corner">
    </div>
</div>
